using UniversalAdmin.Domain.Common;
using UniversalAdmin.Domain.Entities;

namespace UniversalAdmin.Domain.Events;


// 角色创建事件
public record RoleCreatedEvent(Role Role) : DomainEvent
{
    public int RoleId => Role.Id;
    public string RoleName => Role.Name;
}

// 角色更新事件
public record RoleUpdatedEvent(Role Role) : DomainEvent
{
    public int RoleId => Role.Id;
    public string RoleName => Role.Name;
}


// 角色删除事件
public record RoleDeletedEvent(int RoleId, string RoleName) : DomainEvent;
